package jwlee.testinstrumentation;

public class TestMainInJar {
	public static void main(String[] args) throws Exception {
//		main1();
		main2();
	}

	//jdk5
	private static void main1() {
		System.out.println(new TransClass().getNumber());
	}
	
	//jdk6
	private static void main2() throws InterruptedException {
        System.out.println(new TransClass().getNumber());
        int count = 0;
        while (true) {
            Thread.sleep(500);
            count++;
            int number = new TransClass().getNumber();
            System.out.println(number);
            if (3 == number || count >= 10) {
                break;
            }
        }
    }

}